/*
 * @Author: wangqi 2629519506@qq.com
 * @Date: 2023-05-04 17:06:23
 * @LastEditors: cgl
 * @LastEditTime: 2023-06-28 10:39:20
 * @FilePath: \public-health-emergencies-fed:\radiation-hygiene-fe\src\api\testItem\itemDR06.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// 根据ID查询详情数据
export function getInfoById(itemId, index) {
  return request({
    url: `/biz/item/06/getInfoById/${itemId}/${index}`,
    method: 'get',
  })
}
// 1.修改
export function saveInfo06(data) {
  return request({
    url: '/biz/item/06/saveInfo',
    method: 'post',
    data,
		headers: {
			repeatSubmit: false,
		}
  })
}
// 1.探测器剂量指示
export function doseIndication(data) {
  return request({
    url: '/biz/item/06/doseIndication',
    method: 'post',
    data,
		headers: {
			repeatSubmit: false,
		}
  })
}
// 2.信号传递特性
export function signal(data) {
  return request({
    url: '/biz/item/06/signal',
    method: 'post',
    data,
		headers: {
			repeatSubmit: false,
		}
  })
}
// 3.响应均匀性
export function responseUniformity(data) {
  return request({
    url: '/biz/item/06/responseUniformity',
    method: 'post',
    data,
		headers: {
			repeatSubmit: false,
		}
  })
}
// 4.测距误差
export function rangeError(data) {
  return request({
    url: '/biz/item/06/rangeError',
    method: 'post',
    data,
		headers: {
			repeatSubmit: false,
		}
  })
}
// 5.残影
export function ghost(data) {
  return request({
    url: '/biz/item/06/ghost',
    method: 'post',
    data,
		headers: {
			repeatSubmit: false,
		}
  })
}
// 6.高对比度分辨力
export function resolutionHigh(data) {
  return request({
    url: '/biz/item/06/resolutionHigh',
    method: 'post',
    data,
		headers: {
			repeatSubmit: false,
		}
  })
}
// 7.低对比度分辨力
export function resolutionLow(data) {
  return request({
    url: '/biz/item/06/resolutionLow',
    method: 'post',
    data,
		headers: {
			repeatSubmit: false,
		}
  })
}
// 8.伪影
export function artifact(data) {
  return request({
    url: '/biz/item/06/artifact',
    method: 'post',
    data,
		headers: {
			repeatSubmit: false,
		}
  })
}

export function getBaseLineDDIDetail(itemsId, index) {
  return request({
    url: `/biz/item/06/doseIndicationBaseLine/${itemsId}/${index}`,
    method: 'post',
  })
}
export function getBaselineValueDetail(itemsId, index) {
  return request({
    url: `/biz/item/06/resolutionHighBaseLine/${itemsId}/${index}`,
    method: 'post',
  })
}
export function getBaselineCountDetail(itemsId, index) {
  return request({
    url: `/biz/item/06/resolutionLowBaseLine/${itemsId}/${index}`,
    method: 'post',
  })
}

export function addDetector(resultId) {
  return request({
    url: `/biz/item/06/addDetector/${resultId}`,
    method: 'post',
  })
}
export function removeDetector(resultId, index) {
  return request({
    url: `/biz/item/06/removeDetector/${resultId}/${index}`,
    method: 'post',
  })
}